package payroll.trans;

import payroll.classfication.HourlyClassification;
import payroll.classfication.PaymentClassfication;

public class AddHourlyEmployeeTransaction extends AddEmployeeTransation {
   
    private double hourlyRate;

    public AddHourlyEmployeeTransaction(int empId, String name, String address, double hourlyRate) {
        
        super(empId, name, address);
        this.hourlyRate = hourlyRate;
    }
    
    @Override
    protected PaymentClassfication getPaymentClassification() {
         return new HourlyClassification(hourlyRate);
    }


}
